package com.ruoyi.dynamic.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.dynamic.mapper.RoomTypeMapper;
import com.ruoyi.dynamic.model.pojo.entity.RoomType;
import com.ruoyi.dynamic.service.IRoomTypeService;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

/**
 * <p>
 * 房间类型表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2024-11-23
 */
@Service
public class RoomTypeServiceImpl extends ServiceImpl<RoomTypeMapper, RoomType> implements IRoomTypeService {

    @Override
    public RoomType verify(Integer id) {
        RoomType roomType= getById(id);
        Assert.notNull(roomType,"房间类型不存在");
        return roomType;
    }
}
